@model EIMS.Models.Customer

@{
    ViewData["Title"] = "删除客户";
}

<div class="container-fluid px-4">
    <h1 class="mt-4">@ViewData["Title"]</h1>
    <ol class="breadcrumb mb-4">
        <li class="breadcrumb-item"><a asp-controller="Home" asp-action="Index">首页</a></li>
        <li class="breadcrumb-item"><a asp-controller="Customer" asp-action="Index">客户管理</a></li>
        <li class="breadcrumb-item active">删除客户</li>
    </ol>

    <div class="card mb-4">
        <div class="card-header text-bg-danger">
            <i class="fas fa-exclamation-triangle me-1"></i>
            删除确认
        </div>
        <div class="card-body">
            <div class="alert alert-danger">
                <h5>您确定要删除此客户吗？此操作不可逆转！</h5>
            </div>
            
            <div class="row">
                <div class="col-md-6">
                    <dl class="row">
                        <dt class="col-sm-4">
                            @Html.DisplayNameFor(model => model.CustomerNumber)
                        </dt>
                        <dd class="col-sm-8">
                            @Html.DisplayFor(model => model.CustomerNumber)
                        </dd>
                        <dt class="col-sm-4">
                            @Html.DisplayNameFor(model => model.Name)
                        </dt>
                        <dd class="col-sm-8">
                            @Html.DisplayFor(model => model.Name)
                        </dd>
                        <dt class="col-sm-4">
                            @Html.DisplayNameFor(model => model.Type)
                        </dt>
                        <dd class="col-sm-8">
                            @Html.DisplayFor(model => model.Type)
                        </dd>
                    </dl>
                </div>
                <div class="col-md-6">
                    <dl class="row">
                        <dt class="col-sm-4">
                            @Html.DisplayNameFor(model => model.ContactPerson)
                        </dt>
                        <dd class="col-sm-8">
                            @Html.DisplayFor(model => model.ContactPerson)
                        </dd>
                        <dt class="col-sm-4">
                            @Html.DisplayNameFor(model => model.PhoneNumber)
                        </dt>
                        <dd class="col-sm-8">
                            @Html.DisplayFor(model => model.PhoneNumber)
                        </dd>
                        <dt class="col-sm-4">
                            @Html.DisplayNameFor(model => model.Email)
                        </dt>
                        <dd class="col-sm-8">
                            @Html.DisplayFor(model => model.Email)
                        </dd>
                    </dl>
                </div>
            </div>
            
            <form asp-action="Delete">
                <input type="hidden" asp-for="Id" />
                <div class="form-group mt-3">
                    <input type="submit" value="确认删除" class="btn btn-danger" />
                    <a asp-action="Index" class="btn btn-secondary">取消</a>
                </div>
            </form>
        </div>
    </div>
</div> 